<?php

/* @var $urls */
/* @var $host */
 
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
 
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    
        <?php foreach($pageCollection as $page): ?>
        <url>
            <loc>https://pobeda-orenburg.ru/<?= $page['path'] ?></loc>
            <priority>1</priority>
        </url>
        <?php endforeach; ?>
        
        <url>
            <loc>https://pobeda-orenburg.ru/news/index</loc>
            <priority>1</priority>
        </url>
        <?php foreach($newsCollection as $news): ?>
        <url>
            <loc>https://pobeda-orenburg.ru/news/<?= $news['id'] ?></loc>
            <priority>1</priority>
        </url>
        <?php endforeach; ?>

        <url>
            <loc>https://pobeda-orenburg.ru/event/index</loc>
            <priority>1</priority>
        </url>
        <?php foreach($eventCollection as $event): ?>
        <url>
            <loc>https://pobeda-orenburg.ru/event/<?= $event['id'] ?></loc>
            <priority>1</priority>
        </url>
        <?php endforeach; ?>

</urlset>